package com.castle.fortress.admin.member.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.castle.fortress.admin.member.entity.MemberCommentEntity;
import java.util.Map;
import java.util.List;
/**
 * 会员评论表Mapper 接口
 *
 * @author castle
 * @since 2023-02-20
 */
@Mapper
public interface MemberCommentMapper extends BaseMapper<MemberCommentEntity> {

	List<MemberCommentEntity> extendsList(@Param("map")Map<String, Long> pageMap, @Param("memberCommentEntity") MemberCommentEntity memberCommentEntity);

    Long extendsCount(@Param("memberCommentEntity")MemberCommentEntity memberCommentEntity);

    List<MemberCommentEntity> childrens(@Param("parents")List<Long> parents);

    List<MemberCommentEntity> selectDataList(Map<String , Object> params);

    /**
     * 点赞
     * @param id
     */
    void addThumbsUp(@Param("id")Long id);

    /**
     * 取消点赞
     * @param id
     */
    void cancelThumbsUp(@Param("id")Long id);

}
